#!/bin/sh

rm -f config.cache
mkdir -p build

if [ -d m4 ]; then
        echo "Looking in m4/build directory for macros."
        aclocal -I m4 -I build
else
        echo "Looking in current directory for macros."
        aclocal -I .
fi

echo "Adding missing files."
automake --add-missing --force-missing
echo "Autoconf, Autoheader, Automake"
autoconf
autoheader
automake
exit 0
